//1.引入相应的模块
import banner from './banner.json'
import floor from './floor.json'
import Mock from 'mockjs'
// import axios from 'axios'

//2.配置服务
Mock.mock('/mock/banner','get',{code:200,data:banner})
Mock.mock('/mock/floor','get',{code:200,data:floor})

//3.测试一下请求
// axios.get('/mock/banner').then(res=>{
//      console.log('mock',res.data);
// },err=>{
//      console.log('mockerr',err.message);
// })